public class Add {
    public static int add(int a,int b) {
        return a+b;
    }
    public static double add(double a,double b,double c) {
        return a+b+c;
    }
    public static int add(int a,int b,int c) {
        return a+b+c;
    }

    public static void main(String[] args) {
        System.out.println(add(1.2,1.3,13.5));
        System.out.println((add(1,2,3)));
        System.out.println(add(1,5));
        System.out.println(maxNum(15,16));
        System.out.println(maxNum(15.6,15.7,15.8));
    }

    public static int maxNum(int a,int b) {
        return a>b?a:b;
    }
    public static double maxNum(double a,double b,double c) {
        return (a>b?a:b)>c?(a>b?a:b):c;
    }
}
